<!DOCTYPE html>
<html>
<head>
	<title>个人注册</title>
	<meta charset="utf-8">
	<link rel="stylesheet" href="__PUBLIC__/css/bootstrap.min.css" />
	<link rel="stylesheet" href="__PUBLIC__/css/bootstrap-theme.min.css" />
	<link rel="stylesheet" href="__PUBLIC__/css/nivo-slider.css" />
	<link rel="stylesheet" href="__PUBLIC__/css/front.css" />
</head>
<body>
	<div class="container">
		<div class="row" id="header">
			<div class="col-md-3">
				<a href="__APP__"><img id="logo" src="__PUBLIC__/img/logo.png" /></a>
			</div>
		</div>
		<br />
	</div>
	<div id="regedit_wrapper">
	<div class="container">
		<div id="regedit">
			<div class="panel panel-default">
				<div class="panel-heading">
					用户注册
				</div>
				<div class="panel-body">
					<form action="<?php echo U('user/do_regedit')?>" method="post">
						<div class="form-group">
							<label>账户名</label>
							<input type="text" class="form-control" name="username" placeholder="请输入账户名...">
						</div>
						<div class="form-group">
							<label>密码</label>
							<input type="password" class="form-control" name="password" placeholder="请输入密码...">
						</div>
						<div class="form-group">
							<label>再次输入密码</label>
							<input type="password" class="form-control" name="password_repeat" placeholder="请再次输入密码...">
						</div>

						<div class="form-group">
								<label>验证码</label>
								<div class="row">
									<div class="col-md-6">
										<input class="form-control" type="text" name="verify" placeholder="不区分大小写">
									</div>
									<div class="col-md-6">
										<img style="cursor:pointer;width:100%;" id="verify" src="<?=U('user/verify')?>" />
									</div>
								</div>
							</div>


						<div class="form-group">
							<button type="submit" class="btn btn-block btn-success">立即注册</button>	
						</div>

					</form>
				</div>
			</div>
		</div>
	</div>
	</div>
	<script type="text/javascript" src="__PUBLIC__/js/jquery-3.1.0.min.js"></script>
	<script type="text/javascript">
		$(function(){
			$('#verify').click(function(){
				var src = "<?php echo U("user/verify")?>"+"?"+Math.floor(Math.random()*1000);
				
				$(this).attr('src',src);
			});
		})
	</script>

</body>
</html>